package com.xfz.Mapper;

import com.xfz.User.Material;
import com.xfz.User.Supplier;
import com.xfz.User.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MaterialMapper {

        @Select("select  * from t_material")
        List<Material> findAllMaterial();


    @Insert("insert into t_ (Itemname, Specifications, Manufacturer,Price) values (#{material.Itemname}, #{material.Specifications}, #{material.Manufacturer}, #{material.Price})")
    List<Material> saveMaterial(@Param("material") Material material);

    }
